//
//  RecommendContentTableViewCell.m
//  网络FM
//
//  Created by dllo on 15/5/26.
//  Copyright (c) 2015年 dengzhicheng.com. All rights reserved.
//

#import "RecommendContentTableViewCell.h"

@implementation RecommendContentTableViewCell
- (void)dealloc
{
    [_titleLable release];
    [_likeLable release];
    [_aImageView release];
    [_bigImageView release];
    [_likeImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.bigImageView = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, [UIScreen mainScreen].bounds.size.width - 10, 90)];
        [self.bigImageView setBackgroundColor:[UIColor colorWithRed:240 / 255.0 green:240 / 255.0 blue:240 / 255.0 alpha:1.0f]];
        self.bigImageView.layer.cornerRadius = 20;
        self.bigImageView.clipsToBounds =YES;
        [self.contentView addSubview:self.bigImageView];
        [_bigImageView release];
        
        self.titleLable = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, [UIScreen mainScreen].bounds.size.width - 80, 43)];
//        [self.titleLable setBackgroundColor:[UIColor redColor]];
        self.titleLable.font = [UIFont systemFontOfSize:18];
        self.titleLable.numberOfLines = 0;
        [self.bigImageView addSubview:self.titleLable];
        [_titleLable release];
        
        self.likeLable = [[UILabel alloc] initWithFrame:CGRectMake(45, 60, 100, 20)];
        self.likeLable.textColor = [UIColor lightGrayColor];
        [self.bigImageView addSubview:self.likeLable];
        [_likeLable release];
        
        
        self.likeImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 58, 20, 20)];
        [self.bigImageView addSubview:self.likeImageView];
        [_likeImageView release];
        
        
        self.aImageView = [[UIImageView alloc] initWithFrame:CGRectMake([UIScreen mainScreen].bounds.size.width - 50, 35, 25, 25)];
//        [self.aImageView setBackgroundColor:[UIColor redColor]];
        [self.bigImageView addSubview:self.aImageView];
        [_aImageView release];
        
    }
    return self;
}
- (void)awakeFromNib {
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
